<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!--<link rel="stylesheet" type="text/css"  media="screen" href="style/previous/citportal.css" />-->
<link rel="stylesheet" type="text/css"  media="screen, projection" href="style/previous/tutorial1.css" />
<script type="text/javascript">
    function checkAnswer(num)
    {
        var element = document.getElementById('answer');


        if(num==256)
        {
            element.style.border = "1px solid #000";
            element.innerHTML = "You are correct! There are two choices per option: <span style='color: red;'>Selected</span> and ";
            element.innerHTML += "<span style='color: red'>Unselected</span>. <br /><br />Since there are 8 options, with 2 choices each, we have 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2,2<sup>8</sup>, or 256  configurations.";
        }
        else
        {
            element.innerHTML = num + " is not the right answer. <br /><br />To find the answer,count the number of choices for each option and multiply the number of choices from all options together."
        }

    }

    function checkOA(num)
    {
        var element = document.getElementById('answer');

        if(num==4)
        {
            element.innerHTML = "Correct, N = 16, s = 2 for k = 6 columns and s = 4 for k = 3 columns with strength 2.";
        }
        else if(num==1)
        {
            element.innerHTML = "Incorrect, remember that N represents the number of rows";
        }
        else if(num==2)
        {
            element.innerHTML = "Incorrect, how many columns contain just 2 values?";
        }
        else if(num==3)
        {
            element.innerHTML = "Incorrect, look at the values of k and the total number of columns in the Mixed Orthogonal Array";
        }
        else if(num==5)
        {
            element.innerHTML = "Incorrect, remember the index is found by &#955=N/s<sup>t</sup>, what value do you get if t is equal to 3 and s is equal to 4? ";
        }

    }


    function next_step()
    {
        var i = 1;
        var frame = document.getElementById(i);
        document.getElementById('back_float').style.visibility="visible";
        while(frame)
        {
            if(frame.style.display == 'block')
            {
                make_visible = document.getElementById(i + 1);
                if(make_visible)
                {
                    frame.style.display = 'none';
                    make_visible.style.display = 'block';
                }
                i = i + 2;
                frame = document.getElementById(i);
                if(!frame)
                    document.getElementById('forward_float').style.visibility="hidden";
                break;
            }
            i = i + 1; 
            frame = document.getElementById(i);
        }
    }
    function page()
    {
        var i = 1;
        var check = <?php echo $start?>;
        if(check == i){
            var frame = document.getElementById(i);
            make_visible = document.getElementById(check);
            frame.style.display = 'none';
            make_visible.style.display = 'block';
        } 
        else{
            var frame = document.getElementById(i);
            make_visible = document.getElementById(check);
            frame.style.display = 'none';
            make_visible.style.display = 'block';
            document.getElementById('back_float').style.visibility="visible";
        }
    }

    function back_step()
    {
        var i = 1;
        var frame = document.getElementById(i);
        while(frame)
        {
            if(frame.style.display=='block')
            {
                make_visible = document.getElementById(i-1);
                if(make_visible)
                {
                    frame.style.display = 'none';
                    make_visible.style.display = 'block';
                    document.getElementById('forward_float').style.visibility="visible";
                }
                if(i==2) document.getElementById('back_float').style.visibility="hidden";
                break;
            }
            i = i + 1; 
            frame = document.getElementById(i);
        }

    }
</script>
<body onLoad="page( <?php echo $start?>)"> 
<div id="container">
	<div id="header"><h3>Orthogonal Array Tutorial</h3></div>
        <hr>
	<div id="box">
   <div class="row">
                <a href="#" class="seven columns" id="back_float"onclick="back_step()" style='text-align: left; visibility:hidden; background-color: rgb(176, 209, 240)'>
                    <h4><i class="icon-left-bold"></i>Previous</h4>
                </a>

                <a href="#" class="seven columns" id="forward_float" onclick="next_step()" style="text-align: right; visibility: visible; background-color: rgb(176, 209, 240)">
                    <h4>Next <i class="icon-right-bold"></i></h4>
                </a>
            </div>
		<!--- box border --> 
		<div id="blc"><div id="brc"> 
		<div id="tlc"><div id="trc"> 
		<!--  -->	
  		<div class="rbcontent">
		  

	
       
      <!--Frame 1-->
      <div id="1" style="display:block;" >
              <div id="contentBox_wide_xl"><p>Objectives. </p></div>
	      <div id="contentBox"><p>Orthogonal Arrays play an
      important role in combinatorics. <br /><br /> This Tutorial will give a
      quick introduction to what Orthogonal Arrays are and why they are
      useful.</p></div>
              <div id="contentBox"><p> Goals:<br /> <br />1. Understand
      what an Orthogonal Array is <br /><br /> 2. Determine the
      important factors of an Orthogonal Array by looking at its
      denotation</p></div>
    </div>
     
     <!--Frame 2-->
      <div id="2" style="display:none;" >
              <div id="contentBox_wide"><p>The definition of an
      orthogonal array is as follows.  <br /> <br />  An <span style="color: red;">N</span> x <span style="color: red;">k</span> array A
      with entries from some set S with <span style="color: red;">s</span> levels, strength <span style="color: red;">t</span> within
      the range 0 &#8804 <span style="color: red;">t</span> &#8804 <span style="color: red;">k</span>and index 
	  <span style="color: red;">&#955 </span>where every 
	  <span style="color: red;">N</span> x <span style="color: red;">t</span>
      subarray of A contains each <span style="color: red;">t</span>-tuple based on S exactly <span style="color: red;">&#955 </span>
      times as a row.</p></div>
	      <div id="contentBox"><p>This information can be found
      within the standard notation of an Orthogonal Array which is
      <span style="color: red;">OA(N,k,s,t)</span></p></div>
              <div id="contentBox"><p>To make it easier to understand
      let's run through a quick example</p></div>  
     </div>
     
   <!-- Frame 3 -->
   <div id="3" style="display: none;">
     <div id="contentBox_wide_xl"><p>An OA(<span style="color: red;">8</span>,4,2,3) </p></div><br />
   <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p><span style="color: red;">N</span> is equal to 8 and represents
   the number of rows. <br /><br /> In
   combinatorics the rows represent different tests to be run.</p></div></td>
        <td><?php echo OA2(); ?></td>
	</tr></tbody></table>
   </div>
   
  <!-- Frame 4 --> 
  <div id="4" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,<span style="color: red;">4</span>,2,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p> <span style="color: red;">k</span> is equal to 4 and represents
   the number columns. <br /><br /> In combinatorics the each column
      represents a different parameter.</p></div></td>
        <td><?php echo OA3(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 5 --> 
  <div id="5" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,<span style="color: red;">2</span>,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p><span style="color: red;">s</span> is equal to 2 and represents
   the number of possible variable values. <br /><br /> In
   combinatorics the values represent the different levels or states
  for the parameters being tested.</p></div></td>
        <td><?php echo OA4(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 6 --> 
  <div id="6" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,<span style="color: red;">2</span>,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p>Note that in this example because
  <span style="color: red;">s</span> is equal to 2 we are dealing with the set of possible values
  S={0,1} <br /><br /> In combinatorics this could represent something
  like an off or on switch.</p></div></td>
        <td><?php echo OA4(); ?></td>
	</tr></tbody></table>
  </div>

   <!-- Frame 7 --> 
  <div id="7" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,2,<span style="color: red;">3</span>)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p><span style="color: red;">t</span> is equal to 3 and represents
   the number of variables in each N x t subarray. <br /><br /> In
   combinatorics a larger strength means more combinations.</p></div></td>
        <td><?php echo OA5(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 8 --> 
  <div id="8" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,2,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p>There are 4 different subarrays
  each containing every combination of 3 parameters excactly one time
  <br /><br /> 3 columns are highlighted with yellow, 3 are outlined
  in red, 3 are in italics and 3 are colored blue.</p></div></td>
        <td><?php echo OA5(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 9 --> 
  <div id="9" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,2,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p>The final parameter of an
  Orthogonal array is the index <span style="color: red;">&#955 </span> which can be calculated by the
  formula <span style="color: red;">&#955 </span>=N/s<sup>t</sup> <br /><br /> The index represents the number of times
  each combination of values appears in each subarray.</p></div></td>
        <td><?php echo OA5(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 10 --> 
  <div id="10" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,4,2,3)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p> <span style="color: red;">&#955 </span>=8/2<sup>3</sup>=1 so this
  Orthogonal array has index unity because the index is equal to
  one. <br /><br /> Within combinatorics the index can play a large
  role in testing, this concept will be explored further in an
  application tutorial.</p></div></td>
        <td><?php echo OA5(); ?></td>
	</tr></tbody></table>
  </div>

  <!--Frame 11-->
      <div id="11" style="display:none;" >
              <div id="contentBox_wide"><p>The Orthogonal array
      testing system or OATS uses the concept of orthogonal arrays to
      design tests for software systems
      <br /> <br />  By setting up an Orthogonal Array with testing
      parameters and approprite values you can easily create a series
      of tests that can cover all pairwise or greater combinations.</p></div>
	      <div id="contentBox"><p>The paper "Robust Testing of
      AT&T PMX/StarMAIL using OATS" showed that by using OATS they had a higher
      level of confidence for the finished product when released on time then originaly anticipated.</p></div>
              <div id="contentBox"><p>Next let's see how orthogonal
      arrays can be adjusted for more complex systems.</p></div>  
     </div>

  <!--Frame 12-->
      <div id="12" style="display:none;" >
              <div id="contentBox_wide"><p>An Orthogonal Array can be
      limited by its definition, so what if a problem requires more flexability?  One possible option is
      using a Mixed Orthogonal Array.
      <br /> <br />  What makes them so useful is that different
      variables are not restricted by the same set of possible values.</p></div>
	      <div id="contentBox"><p>A Mixed Orthogonal Array is
      denoted by <span style="color: red;">OA(N,s<sup>k</sup>,t)</span>.  <span style="color: red;">N</span> and <span style="color: red;">t</span> stay the same, but
      now there are <span style="color: red;">k</span> variables with <span style="color: red;">s</span> values.</p></div>
              <div id="contentBox"><p>Let's look at a simple example.</p></div>  
     </div>
     
<!-- Frame 13 --> 
  <div id="13" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,<span style="color: red;">2<sup>4</sup></span>,<span style="color: red;">4<sup>1</sup></span>,2)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p> Here there are 4
  columns with 2 possible values, and 1 column with 4 possible
  values.<br /><br />This can be adjusted in countless ways, and is
  essential when testing complicated systems.</p></div></td>
        <td><?php echo MOA1(); ?></td>
	</tr></tbody></table>
  </div>

  <!-- Frame 14 --> 
  <div id="14" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(8,2<sup>4</sup>,4<sup>1</sup>,<span style="color: red;">2</span>)</p> </div><br />
      <table style ='width:50%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p> Note that the possible
  combinations now depends on which columns are chosen to look at.<br
  /><br />2 values combined creates 4 possibilities (0,0) (0,1) (1,0) (1,1) which
  each occur 2 times in this mixed orthogonal array.</p></div></td>
        <td><?php echo MOA1(); ?></td>
	</tr></tbody></table>
  </div>

   <!-- Frame 15 --> 
  <div id="15" style="display: none;">
      <div id="contentBox_wide_xl"> <p>An OA(<span style="color: red;">8</span>,2<sup>4</sup>,4<sup>1</sup>,2)</p> </div><br />
      <table style ='width:60%;  margin-left:20%'><tbody><tr>
     <td><div id="contentBox_OA"><p> One 2 value and one 4 value
  variable combined create 8 possibilites (0,0) (1,0) (1,1) (0,1) (1,2) (0,2) (0,3)
  (1,3) which each occur 1 time in this mixed orthogonal array.<br
  /> <br />In general N must be a multiple of all the different
  numbers of possibilities, in this case 4 and 8.</p></div></td>
        <td><?php echo MOA1(); ?></td>
	</tr></tbody></table>
  </div>
    
<!-- Frame 16 --> 
  <div id="16" style="display: none;">
   <table style ='width:50%;  margin-left:20%'><tbody><tr>
  <td><div id="contentBox_OA"><p>What is the correct denotation of This Mixed
  Orthogonal Array? </p> 
   <div id="tutorial_two_quiz"><br />
     <form id="tutorial_quiz" name="frame1" action="#" method="POST">
       <table ><tbody>
	      <tr><td><input onclick="checkOA(1)" type="radio" name="frame1" value="1" />OA(18,4<sup>6</sup>,2<sup>3</sup>,2)</td></tr>
              <tr><td><input onclick="checkOA(2)" type="radio" name="frame1" value="2" />OA(16,4<sup>6</sup>,2<sup>3</sup>,3)</td></tr>
              <tr><td><input onclick="checkOA(3)" type="radio" name="frame1" value="3" />OA(16,2<sup>9</sup>,4<sup>3</sup>,2)</td></tr>
              <tr><td><input onclick="checkOA(4)" type="radio" name="frame1" value="4" />OA(16,2<sup>6</sup>,4<sup>3</sup>,2)</td></tr>
              <tr><td><input onclick="checkOA(5)" type="radio" name="frame1" value="5" />OA(16,2<sup>6</sup>,4<sup>3</sup>,3)</td></tr>
              <tr><td><input type="radio" style="display:none;"name="frame1" checked = "yes"/></td></tr>
	    </tbody></table></div></td></div>
     <td> <?php echo testOA(); ?></td>
     </tr></tbody></table>
      <div id="answer"></div>
   </div>

  
   <!--Frame 17-->
      <div id="17" style="display:none;" >
              <div id="contentBox_wide"><p>One of the problems with
      using Orthogonal Arrays is that they can be too strict with
      their index values.  By relaxing the index you can create a
      covering array.
      <br /> <br />  Covering arrays are desired for their ability to
      cover all the imporant combinations while reducing the size of
      the array as much as possible.</p></div>
	      <div id="contentBox"><p>A Covering array can be denoted
      by <span style="color: red;">CA(t,k,v)</span> with <span style="color: red;">t</span> and <span style="color: red;">k</span> 
	  the same as t and k for an orthogonal array and <span style="color: red;">v</span>
      the same as s for an othogonal array .</p></div>
              <div id="contentBox"><p>Covering arrays will be covered
      further in a later tutorial.</p></div>  
     </div>

   <!--Frame 18-->
      <div id="18" style="display:none;" >
              <div id="contentBox_wide_xl"><p>Recap. </p></div>
	      <div id="contentBox"><p>One of the key underlining
      concepts in combinatorics is Orthogonal Arrays. <br /><br />
      Having at least some basic knowledge in what they can help make sense of the more complicated concepts.</p></div>
              <div id="contentBox"><p> Next:<br /> <br /><li><a
      href="historyTutorial.php?start=5">Back to Main Tutorial</a> </li> <br /><br /> Tutorial on construction of Orthogonal Arrays</p></div>
     </div>
   
   <div style="clear: both;"></div>
   <div style="clear: both;"></div>
                </div>
              
</div></div></div></div>
                </div>

        <div style="clear:none;"></div>
</div>
</body>

</html>
<?php

function OA1(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table class='max'>
               <tbody>
                   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}
   
   function OA2(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table class='max'>
               <tbody>
                   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
		     <td><img src='public/tutorials/images/green_right_cb.bmp'/></td>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}

   function OA3(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table class='max'>
               <tbody>
		 <tr>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
		       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
                   </tr>
                   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}

   function OA4(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table  class='max'>
               <tbody>
                   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td style='background-color:yellow;'>1</td>
		       <td style='background-color:yellow;'>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td style='background-color:yellow;'>1</td>
                       <td>0</td>
		       <td style='background-color:yellow;'>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td style='background-color:yellow;'>1</td>
                       <td style='background-color:yellow;'>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td style='background-color:yellow;'>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td style='background-color:yellow;'>1</td>
                   </tr>
		   <tr>
                       <td style='background-color:yellow;'>1</td>
                       <td>0</td>
                       <td style='background-color:yellow;'>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td style='background-color:yellow;'>1</td>
                       <td style='background-color:yellow;'>1</td>
                       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td style='background-color:yellow;'>1</td>
                       <td style='background-color:yellow;'>1</td>
                       <td style='background-color:yellow;'>1</td>
		       <td style='background-color:yellow;'>1</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}

   function OA5(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table class='max'>
               <tbody>
                   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>0</td>
                       <td style='color:black;'>0</td>
                       <td style='font-style:normal;'>0</td>
		       <td style='background-color:#E0EEEE;'>0</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>0</td>
                       <td style='color:black;'>0</td>
                       <td style='font-style:normal;'>1</td>
		       <td style='background-color:#E0EEEE;'>1</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>0</td>
                       <td style='color:black;'>1</td>
                       <td style='font-style:normal;'>0</td>
		       <td style='background-color:#E0EEEE;'>1</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>0</td>
                       <td style='color:black;'>1</td>
                       <td style='font-style:normal;'>1</td>
		       <td style='background-color:#E0EEEE;'>0</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>1</td>
                       <td style='color:black;'>0</td>
                       <td style='font-style:normal;'>0</td>
		       <td style='background-color:#E0EEEE;'>1</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>1</td>
                       <td style='color:black;'>0</td>
                       <td style='font-style:normal;'>1</td>
		       <td style='background-color:#E0EEEE;'>0</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>1</td>
                       <td style='color:black;'>1</td>
                       <td style='font-style:normal;'>0</td>
		       <td style='background-color:#E0EEEE;'>0</td>
                   </tr>
		   <tr style='background-color:yellow; border:1px solid red; font-style:italic; color:blue;'>
                       <td style='border-top:1px solid yellow; border-left:1px solid yellow;
			 border-bottom:1px solid yellow; border-right:1px solid red;'>1</td>
                       <td style='color:black;'>1</td>
                       <td style='font-style:normal;'>1</td>
		       <td style='background-color:#E0EEEE;'>1</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}

   function MOA1(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table class='max'>
               <tbody>
		 <tr>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
                       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
		       <td><img src='public/tutorials/images/green_down_cb.bmp'/></td>
		       <td><img src='public/tutorials/images/green_down_dark_cb.bmp'/></td>
                   </tr>
                   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
		       <td>3</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
		       <td>3</td>
                   </tr>
               </tbody>
           </table>

   </div>";
       return $html;
}
   

function testOA(){
       $html = "<div id='table_tutorial_two' style='width: 60%; margin-left: 20%;'>
       <table>
               <tbody>
                   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
		       <td>0</td>
		       <td>1</td>
		       <td>0</td>
		       <td>2</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>2</td>
		       <td>0</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
		       <td>1</td>
		       <td>1</td>
		       <td>2</td>
		       <td>2</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>3</td>
		       <td>3</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
		       <td>1</td>
		       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>2</td>
		       <td>3</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
		       <td>0</td>
		       <td>0</td>
		       <td>2</td>
		       <td>1</td>
		       <td>3</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>1</td>
		       <td>3</td>
		       <td>0</td>
		       <td>3</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>0</td>
		       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>3</td>
		       <td>2</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>1</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>1</td>
		       <td>0</td>
		       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>2</td>
		       <td>3</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>1</td>
                       <td>1</td>
		       <td>1</td>
		       <td>0</td>
		       <td>0</td>
		       <td>3</td>
		       <td>3</td>
		       <td>0</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>0</td>
                       <td>1</td>
		       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>3</td>
		       <td>1</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>1</td>
                       <td>0</td>
                       <td>0</td>
		       <td>0</td>
		       <td>1</td>
		       <td>0</td>
		       <td>1</td>
		       <td>3</td>
		       <td>2</td>
                   </tr>
		   <tr>
                       <td>0</td>
                       <td>1</td>
                       <td>0</td>
		       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>1</td>
		       <td>0</td>
                   </tr>
               </tbody>
           </table>
   </div>";
       return $html;
}